<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=no">
	<meta name="keywords" content="日新,日新网,房产后市场,物业多种经营" />
	<meta name="description" content="
    日新网是一家致力于推动新科技、新理念、新政策引入房地产后市场的产业创新服务平台。“日新”语出《大学》——“苟日新，日日新，又日新”。
    日新网专注用新科技、新理念、新政策、新模式妆点房产后市场，让新生活更近一点，让科技落地更从容一点。日新网专注用新科技、新理念、新政策、新模式打造物业多种经营...">
	<title>日新网</title>
	<link rel="stylesheet" href="__TMPL__Public/assets/css/bootstrap.min.css">
	<link rel="stylesheet" href="__TMPL__Public/assets/css/reset.css">
	<link rel="stylesheet" href="__TMPL__Public/assets/css/style.css">
	<link rel="stylesheet" href="/public/swiper/swiper.min.css">
	<script type="text/javascript" src="__TMPL__Public/assets/js/rem.js"></script>
	<style>
		input::-webkit-outer-spin-button,
		input::-webkit-inner-spin-button {
			-webkit-appearance: none;
		}
		.ellipsis2 {overflow: hidden; text-overflow:ellipsis; display: -webkit-box; -webkit-line-clamp: 2;-webkit-box-orient: vertical;}
		.ellipsis3 {overflow: hidden; text-overflow:ellipsis; display: -webkit-box; -webkit-line-clamp: 3;-webkit-box-orient: vertical;}
		.ellipsis4 {overflow: hidden; text-overflow:ellipsis; display: -webkit-box; -webkit-line-clamp: 3;-webkit-box-orient: vertical;}
		input {
			outline:none;
		}
		.carousel-inner {
			position: relative;
		}
		.focus_title_group {
			display: table;
			height: 1rem;
			width: 100%;
			position: absolute;
			bottom: 0;
			height: 1rem;
		}
		.carousel-inner .focus_title {

			font-size: .28rem;
			line-height: .36rem;
			box-sizing: border-box;
			padding: 0 .2rem;
			background-color: #000000;
			filter:alpha(opacity=50);
			-moz-opacity:0.5;
			opacity:0.5;
			color: #fff;
			width: 100%;
			height: 100%;
			display: table-cell;
			vertical-align: middle;
		}
		.footer a:nth-child(1) span {
			color: #c8161d;
		}
		/*回到顶部图标*/
		.return_top {
			width:40px;
			height:40px;
			background: url("/public/images/img/return_top.gif") no-repeat center;
			position: fixed;
			right: 12px;
			bottom: 90px;
			display: none;
		}
		.return_top a {
			display: block;
			width: 100%;
			height: 100%;
		}
	</style>
	<style>
		input::-webkit-outer-spin-button,
		input::-webkit-inner-spin-button {
			-webkit-appearance: none;
		}
		input {
			outline:none;
		}
		.footer a:nth-child(1) span {
			color: #c8161d;
		}
		.carousel-inner {
			position: relative;
		}
		.carousel-inner .item a {
			display: block;
			width: 100%;
		}
		.carousel-inner .item img {
			display: block;
			width:100% ;
		}
		.focus_title_group {
			display: table;
			height: 1rem;
			width: 100%;
			position: absolute;
			bottom: 0;
		}
		.carousel-inner .focus_title {

			font-size: .28rem;
			line-height: .36rem;
			box-sizing: border-box;
			padding: 0 .2rem;
			background-color: #000000;
			filter:alpha(opacity=50);
			-moz-opacity:0.5;
			opacity:0.5;
			color: #fff;
			width: 100%;
			height: 100%;
			display: table-cell;
			vertical-align: middle;
		}
		.content_list_div {
			display: none;
		}
		.show {
			display: block!important;
		}
		.act {
			position: fixed;
			top:-.1rem;
			z-index: 1000;
			line-height: .4rem;
			background-color: hsla(0,0%,100%,.9);
		}
		#tab_nav ul li {
			cursor: pointer;
		}
		/*nav 样式调整*/
		#tab_nav ul li:nth-child(1),#tab_nav ul li:nth-child(2) {
			width: 16%;
		}
		#tab_nav ul li:nth-child(3),#tab_nav ul li:nth-child(4) {
			width: 24%;
		}
		/*日新早报*/
		.morning_paper {
			width: 4.6rem;
			height: 3.94rem;
			background: url("{:sp_get_asset_upload_path('http://video.rixins.com/image/default/3A8965BD580040C4B30F94905876B703-6-2.jpg')}") center no-repeat;
			-webkit-background-size: 3.5rem 300px;
			background-size: 350px 300px;
			color: #fff;
			border-radius: .1rem;
			position: relative;
			display: none;
		}

		.morning_paper .top {
			padding-top: .3rem;
			height: 1.3rem;
			width: 100%;
			overflow: hidden;
		}
		.morning_paper .top span {
			float: left;
			font-weight: bolder;
		}
		.morning_paper .time1 {
			font-size: .32rem;
			margin-left: .24rem;
		}
		.morning_paper .line {
			height: .6rem;
			border-left: 1px dashed #FFFFFF;
			margin-left: .04rem;
			transform:rotate(42deg);
			-o-transform:rotate(42deg);
			-moz-transform:rotate(42deg);
			-webkit-transform:rotate(42deg);
		}
		.morning_paper .time2 {
			font-size: .64rem;
			margin-top: .58rem;
			margin-left: -.14rem;
		}
		.morning_paper .week {
			font-size: .20rem;
			margin-left: .2rem;

		}
		/*.morning_paper .more {
			color: #fff;
			float: right;
			width: 48px;
			height: 20px;
			margin-right: 16px;
			background:url("/public/images/morning_bcg/icon/more.png") no-repeat;
		}*/
		.morning_paper h2 {
			font-size: .32rem;
			font-weight: bolder;
			color: #fff;
			letter-spacing: 2px;
			line-height: .32rem;
			margin-left: .24rem;
			margin-top:.7rem ;
		}
		.morning_paper .text {
			font-size: .24rem;
			color: #fff;
			line-height: .32rem;
			margin: .20rem .3rem 0;
			max-height:.96rem;
		}
		.morning_paper a {
			color: #fff;
		}
		.close_morning {
			position: absolute;
			top: .2rem;
			right:.2rem;
			width: .5rem;
			height: .5rem;
		}
		/*商讯快讯*/
		.swiper_tab {
			margin: .24rem .15rem .36rem;
			/*width: 6rem;*/
			/*overflow: visible!important;*/
			/*margin-left: -.56rem;*/
		}
		.swiper_tab .title {
			font-size: .26rem;
			color: #000232;
			font-weight: bolder;
			line-height: .26rem;
			padding-bottom: .2rem;
			letter-spacing: 1px;
		}
		.swiper_tab .title a {
			float: right;
			color: #000232;
			font-size: .2rem;
			height: 100%;
		}
		.swiper_tab1{
			padding: .12rem .24rem .16rem;
			background-color: #fff;
		}
		.swiper_tab1{
			/*margin-right: .24rem;*/
			height: 2rem;
		}
		.swiper_tab2{
			margin: 0 .16rem 0 .24rem;
		}
		.swiper_tab1_item {
			font-size: .22rem;
			line-height: .3rem;
			margin-bottom: .1rem;
			padding-left: .16rem;
			position: relative;

		}
		.swiper_tab1_item a {
			display: inline-block;
			width: 100%;
			height: 100%;
			color: #333333;
			text-overflow: ellipsis;
			overflow: hidden;
			white-space: nowrap;
		}
		.swiper_tab1_item a:link{
			color: #333333;
		}
		.swiper_tab1_item:before {
			content: "";
			color: #c8161d;
			width: 5px;
			height: 5px;
			border-radius: 50%;
			background-color: #c8161d;
			position: absolute;
			left: 0;
			top: .10rem;
		}
		/*没有数据设置100%*/
		.my-swiper-slide {
			width: 80% !important;
		}

		.layui-layer-shade {
			background-color: #000!important;
		}
		.layui-layer {
			border-radius: .1rem;
		}
	</style>
</head>
<body>
<!--nav-->
<tc_include file="Public:nav"/>
<php>
	$hot_articles = get_slide_show_by_position(5, 0, 4);
</php>
<div id="carousel-example-generic" class="carousel slide comWidth" data-ride="carousel" >
	<!-- Indicators -->
	<!--轮播上的小点-->
	<!--<ol class="carousel-indicators">-->
	<!--<volist name="hot_articles" id="vo">-->
	<!--<li data-target="#carousel-example-generic" data-slide-to="{$key}" class="{$key == 0 ? 'active' : ''}"></li>-->
	<!--</volist>-->
	<!--</ol>-->

	<!-- Wrapper for slides -->
	<div class="carousel-inner" role="listbox">
		<volist name="hot_articles" id="vo">
			<div class="item {$key == 0 ? 'active' : ''}" style="height: 4rem;width: 100%;">
				<a href="{$vo.post_source}">
					<img src="{$vo.img}" style="width:100%; height:100%" class="my-photo">
					<div  class="focus_title_group" >
						<p class="focus_title ellipsis2">{$vo.post_title}</p>
					</div>
				</a>
			</div>
		</volist>
	</div>

	<!-- Controls -->
	<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"  style="margin-left: .15rem;"  >
		<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
		<span class="sr-only">Previous</span>
	</a>
	<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next" style="margin-right: .15rem;">
		<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
		<span class="sr-only">Next</span>
	</a>
</div>
<!--seo优化部分-->
<div class="search-result" style="float: left;width: 300px;margin-left: -9999px;">
	<img src="/public/images/img/search-result.jpg" alt="日新网" style="width: 121px;height: 75px;">
	<p>
		日新网是一家致力于推动新科技、新理念、新政策引入房地产后市场的产业创新服务平台。
		“日新”语出《大学》——“苟日新，日日新，又日新”。日新网专注用新科技、新理念、新政策、
		新模式妆点房产后市场，让新生活更近一点，让科技落地更从容一点。旗下拥有创新行业资讯日新网、
		创新专业培训日新研习社、创新企业孵化成长日新商脉三款产品，以住宅、商业地产、
		写字楼等不同业态物业经营的增效减能与增值创新以及服务标准化、
		物业智能化、信息化等策略方向的创新为主要研究内容，共同助力日新网成为物业行业创新风向标。
	</p>
</div>
<!--tab页-->
<php>
	$professor = get_professor_list(2);
</php>
<!--早报-->
<if condition="!empty($report)">
	<php>
		$weekarray  = array("日","一","二","三","四","五","六");
		$post_date  = strtotime($report['post_date']);
		$week       = $weekarray[date('w', $post_date)];
	</php>
	<div class="morning_paper">
		<a href="{:U('Portal/Article/daily_report_detail', ['id' => $report['id']])}">
			<div class="top">
				<span class="time1">{:date('m', $post_date)}</span>
				<span class="line"></span>
				<span class="time2">{:date('d', $post_date)}</span>
				<span class="week">星期{$week}</span>
			</div>
			<h2>日新早报</h2>
			<p class="text ellipsis3">
				<a href="{:U('Portal/Article/daily_report_detail', ['id' => $report['id']])}">{$report.post_title}</a>
			</p>
		</a>
		<img src="/themes/simplebootx_mobile/Public/assets/images/close_morning.png" alt="" class="close_morning">
	</div>
</if>
<if condition="!empty($advertisement_right)">
	<php>
		$smeta = json_decode($advertisement_right['smeta'], true);
	</php>
	<div class="fr rightarea" style="margin-left: .12rem;">
		<a href="{$advertisement_right.post_source}">
			<img class="active_img my-photo" src="{:sp_get_asset_upload_path($smeta['thumb'])}" style="border-radius: .15rem;" alt="">
		</a>
	</div>
</if>
<!--快讯商讯-->

	<div class="swiper_tab swiper-container">
		<div class="swiper-wrapper">
			<php>
				$news_lists = get_news_list(3);
			</php>
			<if condition="!empty($news_lists)">
				<div class="swiper_tab1 swiper-slide my-swiper-slide">
					<div class="title">
						<span>快讯</span><a href="{:U('Portal/List/news_list')}">More</a>
					</div>
					<volist name="news_lists" id="vo">
						<div class="swiper_tab1_item ellipsis2">
							<a href="{:U('Portal/List/news_detail', ['id' => $vo['id']])}">{$vo.post_title}</a>
						</div>
					</volist>
				</div>
			</if>

			<php>
				$business_news_lists = get_business_news_list(3);
			</php>
			<if condition="!empty($business_news_lists)">
				<div class="swiper_tab1 swiper-slide my-swiper-slide">
					<div class="title">
						<span>商讯</span><a href="{:U('Portal/Businessnews/lists')}">More</a>
					</div>
					<volist name="business_news_lists" id="vo">
						<div class="swiper_tab1_item ellipsis2">
							<a href="{:U('Portal/Businessnews/news_detail', ['id' => $vo['id']])}">{$vo.post_title}</a>
						</div>
					</volist>
				</div>
			</if>
		</div>
	</div>


<!--文章-->
<div id="tab_content">
	<div class="tab_content comWidth" id="article_list">
		<php>
			$content 		= sp_get_post_by_category_id();
			$lists 			= $content['posts'];
			$total_pages 	= $content['total_pages'];
		</php>
		<volist name="lists" id="vo">
			<php>
				$smeta      = json_decode($vo['smeta'], true);
				$postdate   = time_format($vo['post_date']);
			</php>
			<a class="post_article" href="{:U('Portal/Article/article_info', array('id' => $vo['id']))}">
				<div class="tab_content_item">
					<div class="tab_img">
						<img src="{:sp_get_asset_upload_path($smeta['thumb'])}" alt="" class="my-photo">
					</div>
					<div class="tab_text">
						<p class="text_top ellipsis3">{$vo.post_title}</p>
						<div class="text_sub">
							<span>{$vo['label_names'][0]}</span>
							<p><span>{$vo.post_author_name}</span><span class="timer">{$postdate}</span></p>
						</div>
					</div>
				</div>
			</a>
		</volist>
	</div>
	<!--加载更多-->
	<div style="width:110px;height: 30px;border-radius: 15px; color: #C8161D;font-size: 15px;text-align: center;
            line-height: 30px;" class="js-infinite-scroll-loading text-center fontmsyhbd loading_more"></div>
	<div id="nextpage"></div>
</div>

<div class="return_top"><a href="#top"></a></div>
<!--页脚-->
<tc_include file="Public:footer"/>

<script type="text/javascript" src="__TMPL__Public/assets/js/jquery.1.12.4.js"></script>
<script src="__TMPL__Public/assets/js/bootstrap.min.js" ></script>
<!--加载更多-->
<script src="__TMPL__Public/assets/js/jquery.infiniteScroll.js"></script>
<script src="/public/swiper/swiper.min.js"></script>
<script src="/public/js/layer/layer_1.js"></script>
<script>
	// 快讯展开收起效果
	$(document).ready(function () {
		$(document).delegate('.news_item', 'click', function () {
			$(this).find('.text2').slideToggle("fast");
		});
	});
</script>
<script>
    $('#nextpage').infiniteScroll({
        loading:'.js-infinite-scroll-loading',
        total_pages:{$total_pages},
        success:function(content){
            var $items = $(content).find('#article_list a');
            if ($items.length > 0) {
                $('#article_list').append($items);
            }
        }
    });

</script>
<script>
	$(function () {
        var color = [
            "{:sp_get_asset_upload_path('http://video.rixins.com/image/default/3A8965BD580040C4B30F94905876B703-6-2.jpg')}",
            "{:sp_get_asset_upload_path('http://video.rixins.com/image/default/34C9C1E7AFFC486DA48E6301C73A20E2-6-2.jpg')}",
            "{:sp_get_asset_upload_path('http://video.rixins.com/image/default/C9ED79757677477CAEF0ACFA5B28C0A2-6-2.jpg')}",
            "{:sp_get_asset_upload_path('http://video.rixins.com/image/default/AD4DABB96E484D14A4C1530B89A00BDB-6-2.jpg')}",
            "{:sp_get_asset_upload_path('http://video.rixins.com/image/default/A6D019E02FF5422086C938FADD651F0C-6-2.jpg')}",
        ];
		var week = [
			'星期一','星期二','星期三','星期四','星期五'
		];
		$(".week").each(function (index,value) {
			var week_str = $(value).text().trim();
			var index = week.indexOf(week_str);
			if(week_str == "星期六" || week_str ==  "星期日"){
				index = 1;
			}
			$(value).parents('.morning_paper').css("background","url(" + color[index] + ")")

		})
	})
</script>
<script src="/public/slow_img/checkImg.js"></script>

<script>
    // 早报弹窗 localstorage
    // 点击删除弹窗遮罩
    $(".morning_paper .close_morning").click(function () {
        $(".layui-layer, #think_page_trace_open, .layui-layer-shade").hide()
    });
    // localStorage.removeItem("daily_report_id");
    $(function () {
        var report_id = "{$report['id']}";
        if (report_id > 0) {
            var old_report_id = localStorage.getItem("daily_report_id");
            if (old_report_id != report_id) {
                // 弹窗
                layer.open({
                    type: 1,
                    title: false,
                    closeBtn: false,
                    scrollbar: false,
                    area: ["4.6rem","3.94rem"],
                    shadeClose: true,
                    content: $('.morning_paper'),
                })
                localStorage.setItem("daily_report_id", report_id);
			}
		}
    });
</script>

<!--swiper滑块-->
<script>
	var no_businessnews_list = "{:empty($business_news_lists)}"
	if (no_businessnews_list) {
	    $('.swiper_tab1').removeClass('my-swiper-slide');
	}
	var mySwiper = new Swiper ('.swiper-container', {
		direction: 'horizontal',
		slidesPerView: 'auto',
		spaceBetween:15,
		// loop: true,
		// width:200,
	})
</script>
</body>
</html>